package scala.pojo

import mytrait.BaseTrait

/**
 * 继承多个特质 语法练习+ 动态混入
 */
class Person extends BaseTrait with java.io.Serializable {

  override var age: Int = 18

  override def eat(): Unit = println("Person 实现 BaseTrait 吃饭方法")

  override def say(): Unit = println("Person 实现 BaseTrait")
}
